package cn.cvs.dao;

import cn.cvs.entity.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper {
    SysUser selectByAccount(@Param("account") String account);


    int updatePwd(@Param("id") Integer id, @Param("password") String password);
    List<SysUser>selectList(@Param("realName")String realName,
                            @Param ("roleId")Integer roleId,
                            @Param ("pageBegin")Integer pageBegin,
                            @Param ("pageSize")Integer pageSize);
    int selectCount(@Param("realName") String realName,
                    @Param("roleId") Integer roleId);
    SysUser selectById(@Param ("id") Integer id);
    int add(SysUser sysUser);
    int update(SysUser sysUser);
    int deleteById(@Param ("id") Integer delId);
}
